package aop;

import entity.Equip;
import org.apache.log4j.Logger;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Before;

import java.lang.reflect.Field;
import java.util.Arrays;

public class EquipLogger {
    private Logger logger=Logger.getLogger(EquipLogger.class);

    /**
     * 前置增强代码
     */
    @Before("execution(* entity.Player.*(..))")
    public void before(JoinPoint jp){
        String s = Arrays.toString(jp.getArgs());
//        if ("指环".equals()){
//            System.out.println(ring.getName()+"升级为"+equip.getName());
//            this.ring=equeswddip;
//        }
    }
}
